package com.echo.code.spring.springbootdemo.core;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * Description
 *
 * @author baiyp
 * @version 1.0.0
 * @date 2019/04/27
 */
@Configuration
@ComponentScan(value = "com.echo.code.spring.springbootdemo.core")
public class PersonConfig {

  @Bean
  // @Autowired
  public Person person(Car car) {
    Person person = Person.builder().personName("Echo").personGge(20).personCar(car).build();
    return person;
  }
}
